package day4;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class GetMax {
    public static void main(String[] args) {
        int a=14,b=22;
        int max=a>b?a:b;//?:可以减少 if else的数量
//        if(a>b){
//            max=a;
//        }else{
//            max=b;
//        }
        System.out.println(max);
        Scanner in = new Scanner(System.in);
        System.out.println("请输入3个整数：");
        int x = in.nextInt();
        int y = in.nextInt();
        int z = in.nextInt();
        int min =  x<y?(x<z?x:z):(y<z?y:z);
        System.out.println("三个数Min："+min);
    }
}
